import {
	baseRequest
} from "../request"

export const codeProduct = (code) => {
	return baseRequest('gift/giftDetail', 'get', {
		code
	})
}

export const idProduct = id => {
	return baseRequest('gift/idFind', 'get', {
		id
	})
}

export const attrData = id => {
	return baseRequest("gift/giftPackDetail", 'get', {
		id
	})
}

export const codeRecharge = data => {
	return baseRequest("gift/codeRecharge", "post", data)
}

export const productDetail = id => {
	return baseRequest("gift/productDetail", "get", {
		id
	})
}

export const orderList = (data) => {
	return baseRequest("order/lst", 'get', data)
}

export const sendSmsToOrder = mobile => {
	return baseRequest("order/getCode", 'post', {
		mobile
	})
}
export const loginRequest = data => {
	return baseRequest('order/checkCode', 'post', data)
}

export const orderDetail = orderSn => {
	return baseRequest('order/orderDetail', 'get', {
		order: orderSn
	})
}

export const packLst = () => {
	return baseRequest('gift/lst', 'get')
}

export const giftPayment = (data) => {
	return baseRequest("gift/createOrder", "post", data)
}